﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class wb_just_wit : BasiCommand
    {
        [JsonProperty("msg")]
        public string Message { get; set; }

        [JsonProperty("logkeys")]
        public LogKeys LogKeys { get; set; }

        [JsonProperty("wttime")]
        public int WaitTime { get; set; }

        public wb_just_wit()
        {
            FunctionType = "wb_just_wit";
            OtherName = "纯等待";
            SuccessJump = -1;
            FailureJump = -1;
            Message = "";
            LogKeys = new LogKeys();
            WaitTime = 0;
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }

    public class LogKeys
    {
        [JsonProperty("cmd")]
        public string Cmd { get; set; }

        [JsonProperty("txt1")]
        public string Txt1 { get; set; }

        [JsonProperty("txt2")]
        public string Txt2 { get; set; }

        [JsonProperty("txt3")]
        public string Txt3 { get; set; }

        [JsonProperty("txt4")]
        public string Txt4 { get; set; }

        [JsonProperty("txt5")]
        public string Txt5 { get; set; }

        [JsonProperty("int1")]
        public string Int1 { get; set; }

        [JsonProperty("int2")]
        public string Int2 { get; set; }

        [JsonProperty("int3")]
        public string Int3 { get; set; }

        [JsonProperty("int4")]
        public string Int4 { get; set; }

        [JsonProperty("int5")]
        public string Int5 { get; set; }
    }
}
